package com.szb.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leng
 * @Description TODO
 * @date 2021/7/20 16:28
 */
@RefreshScope
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Value("${name}")
    private String name;

//    @Value("${branch}")
//    private String branch;

    @GetMapping("/env0")
    public String env0() {
        return "远程name=" + name;
    }


}
